![]() |
CuDoubleSidedScannerC
1.22
|
Data and parameters definition. More...
Go to the source code of this file.
Data Structures | |
| struct | ScannerDevice |
| struct | LedBarSetting |
| struct | ScanParametersStruct |
| struct | ImageFromScannerStruct |
| struct | UltrasonicParametersStruct |
| struct | CropParametersStruct |
| struct | ScannerCapabilities |
Macros | |
| #define | MAXCHARBUFFER 256 |
| Lenght, in characters, of a standard string. | |
| #define | DW_MAX_DEVICE_CONNECTED 6 |
| Max number of scanner connected at the same time. | |
| #define | MAX_PARAM_LOG_STRING 1500 |
| Max lenght of a parameter log string. | |
Typedefs | |
| typedef char | int8 |
| Service type definition. | |
| typedef short | int16 |
| Service type definition. | |
| typedef int | int32 |
| Service type definition. | |
| typedef unsigned char | uint8 |
| Service type definition. | |
| typedef unsigned short | uint16 |
| Service type definition. | |
| typedef unsigned int | uint32 |
| Service type definition. | |
| typedef uint32 | DeviceID |
| Device ID used to select the device to connect to. | |
Functions | |
| static BYTE | ConvertImageColorDepthToBpp (ImageColorDepthType depthType) |
| static void | ScanParametersToStringA (ScanParametersStruct *pParameters, char *szBufferOut, DWORD dwBuffCharSize) |
| static void | LedBarParametersToStringA (LedBarSetting *pParameters, char *szBufferOut, DWORD dwBuffCharSize) |
| static void | DeviceModelToStringA (DeviceModel deviceModel, char *szBufferOut, DWORD dwBuffCharSize) |
| static void | CropParametersToStringA (CropParametersStruct *pParameters, char *szBufferOut, DWORD dwBuffCharSize) |
Data and parameters definition.
| enum CropPrecision : BYTE |
Indicates the Crop / Deskew precision.
| enum DeviceModel : BYTE |
| enum DoubleSheetDetectOpt : DWORD |
Ultrasonic sensor settings for double/multiple sheet loaded detection.
| Enumerator | |
|---|---|
| DetectOff | Turn OFF the double/multiple sheet detection. |
| Level1 | Turn ON the double/multiple sheet detection, using VERY HIGH sensor sensitivity. |
| Level2 | Turn ON the double/multiple sheet detection, using HIGH sensor sensitivity (Only supported by DeviceModel::A4_Scanner and DeviceModel::A6_PRO_Scanner) |
| Level3 | Turn ON the double/multiple sheet detection, using LOW sensor sensitivity (Only supported by DeviceModel::A4_Scanner and DeviceModel::A6_PRO_Scanner) |
| Level4 | Turn ON the double/multiple sheet detection, using VERY LOW sensor sensitivity (Only supported by DeviceModel::A4_Scanner and DeviceModel::A6_PRO_Scanner) |
| enum FormMovement : BYTE |
| enum FormStanding : BYTE |
| enum GammaChannel : BYTE |
| enum ImageColorDepthType : WORD |
Image color depth type, and color channels
| enum ImageFileFormat : BYTE |
Ouput image format.
| Enumerator | |
|---|---|
| Tiff | Tiff image without compression. |
| Bmp | Bmp image. |
| Jpeg | Jpeg image. |
| Raw | Raw image. The image will be saved from up-left to down-right. For 1 bpp, value 0 means black, value 1 means white; for 8 bpp data is a grey scale starting from 0 (black) to 255 (white); for 24 bpp data is saved in RGB. |
| Tiff_Comp_Rle | Tiff image with RLE compression. |
| Tiff_Comp_Lzw | Tiff image with LZW compression. |
| Tiff_Comp_CCITT4 | Tiff image with CCITT4 compression.
|
| Tiff_Comp_CCITT3 | Tiff image with CCITT3 compression.
|
| Png | Png image. |
| Jpeg_Native | Native Jpeg image. Only supported by DeviceModel::A4_Scanner and DeviceModel::A6_PRO_Scanner. |
| enum ImageResolution : DWORD |
| enum LedBarChannel : DWORD |
Led bar channels. The values are bit-masks: it is possible to select more than one value at time, putting in OR their values. The meaning of each channel may be different depending on the type of installed led bar.
| Enumerator | |
|---|---|
| Channel_1 | Channel 1. Central red leds. |
| Channel_2 | Channel 2. Central green leds. |
| Channel_3 | Channel 3. Red leds on edge. |
| Channel_4 | Channel 4. Green leds on edge. |
| enum LedBarLight : DWORD |
| enum LogVerbosity : uint8 |
Log verbosity. Set library log verbosity using InitLibrary
| enum PaperHeldBackDetectionOpt : DWORD |
| enum ScannerPrintDensity : DWORD |
Scanner print density. Only for scanners that support print option
| enum ScannerType : BYTE |
| enum ScanSide : BYTE |
| enum SensorStatus : BYTE |
| enum WorkingParameter : DWORD |
Library working parameter. Values are bit masks.
| Enumerator | |
|---|---|
| None | No working parameter enabled. |
| LogImage | Enable log image. The library logs the images got from the scanner.
|
| BackupLogFiles | Backup the log file when the log file exceeds the maximum size. The backupped file is the log file renamed with date and time.
|
| KeepAllLogImages | Don't delete the log images, also if their number exceeds the maximum number of allowed files.
|
|
static |
Converts ImageColorDepthType to a "bit per pixel" format.
| [in] | depthType | Color depth type |
|
static |
Convert crop parameters indicated by *pParameters to an ANSI string.
| [in] | pParameters | Pointer to a CropParametersStruct which contains the crop / Deskew parameters |
| [out] | szBufferOut | Pointer to a null-terminated char buffer containing a text description for the crop / Deskew parameters. The buffer must be allocated by the calling process |
| [in] | dwBuffCharSize | Size of szBufferOut, in chars |
Referenced by GetCropParameters(), and SetCropParameters().
|
static |
Convert device model indicated by deviceModel to an ANSI string.
| [in] | deviceModel | A DeviceModel value to be translated to a string |
| [out] | szBufferOut | Pointer to a null-terminated char buffer The buffer must be allocated by the calling process |
| [in] | dwBuffCharSize | Size of szBufferOut, in chars |
|
static |
Convert led bar parameters indicated by *pParameters to an ANSI string.
| [in] | pParameters | Pointer to a LedBarSetting which contains the led bar parameters |
| [out] | szBufferOut | Pointer to a null-terminated char buffer containing a text description for the led bar parameters. The buffer must be allocated by the calling process |
| [in] | dwBuffCharSize | Size of szBufferOut, in chars |
|
static |
Convert scan parameters indicated by *pParameters to an ANSI string.
| [in] | pParameters | Pointer to a ScanParametersStruct which contains the scan parameters |
| [out] | szBufferOut | Pointer to a null-terminated char buffer containing a text description for the scan parameters. The buffer must be allocated by the calling process |
| [in] | dwBuffCharSize | Size of szBufferOut, in chars |